<%@page contentType="text/html" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="ch">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
        <title>登陆</title>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/register_login.css"/>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css"/>
        <script src="${pageContext.request.contextPath}/js/jquery-3.4.1.min.js"></script>
        <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
        <script src="${pageContext.request.contextPath}/js/script.js" charset="UTF-8"></script>
    </head>
    <body>
        <div class="container">
            <div class="register_login bg-warning"> 
                <h1 class="text-info">用户登录</h1>
                <br>
                <form class="form-horizontal" action="${pageContext.request.contextPath}/loginServlet" method="post">
                    <div class="form-group">
                        <label  class="col-sm-2 control-label">账号</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="userName" id="firstname" placeholder="请输入账号">
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-sm-2 control-label">密码</label>
                        <div class="col-sm-10">
                            <input type="password" class="form-control" name="password" id="lastname" placeholder="请输入密码">
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-success btn-lg">登录</button>
                            
                            <a href="${pageContext.request.contextPath}/page/register.jsp">点击注册</a>
                        </div>
                    </div>
                </form>
            </div>  
        </div>
    </body>
</html>
